/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tienda.controladores;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import tienda.vistas.FrmPrincipal;

/**
 *
 * @author apo
 */
public class CtrPrincipal {

    private FrmPrincipal principal = new FrmPrincipal();
    private CtrProductos ctrProductos = new CtrProductos(principal);
    
    public CtrPrincipal() {
   
        principal.addMniMantenimientoProductosAL(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                ctrProductos.mantenerProductos();
            }
        });
        
        principal.setVisible(true);
    }
}
